package com.test.mapper;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.test.common.Page;
import com.test.common.Query;
import com.test.entity.SysUser;


public interface SysUserMapper extends BaseMapper<SysUser> {

	SysUser getByUserName(String username);

	List<Long> listAllMenuId(Long userId);

	int updatePswdByUser(HashMap<String, Object> query);

	int updateUserStatus(HashMap<String, Object> query);

	int updatePswd(SysUser user);

	List<SysUser> listUser(Page<SysUser> page, Query search);
	
	List<String> listAllDepartCode(Long userId);

}
